<template>
  <div class="block">
    <el-image :src="img" class="img">
      <div slot="error" class="image-slot">
        <img class="errimg" src="./head.jpg" alt="">
      </div>
    </el-image>
  </div>
</template>
<script>
export default {
  name: '',
  props: {
    img: {
      type: String,
      default: ''
    }

  }
}
</script>
<style scoped lang="scss">
.errimg{
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
.img{
     width: 100px;
    height: 100px;
    border-radius: 50%;
}
</style>
